package com.example.demo.hutool.mysql;


import cn.hutool.db.Db;
import cn.hutool.db.Entity;

import java.sql.SQLException;

public class test {
    public static void main(String[] args) throws SQLException {
        //dm();
        //mysql

    }

    public static void dm() throws SQLException {
        Db use = Db.use();
        for (int i = 0; i < 10000; i++) {
            try {
                use.insert(Entity.create("TEST.PERSON")
                        .set("ID", i)
                        .set("NAME", i * 100));
            } catch (SQLException e) {
                e.printStackTrace();
            }
        }
        System.out.println(use.findAll("TEST.PERSON"));
    }

}

